import request from '@/utils/request'

export function getProjectList(data) {
  return request({
    url: '/project/find',
    method: 'post',
    data
  })
}
export function saveProjectSave(data) {
  return request({
    url: '/project/save',
    method: 'post',
    data
  })
}
export function delBatchProject(ids) {
    return request({
      url: `/project/delBatch?ids=${ids}`,
      method: 'get',
    })
  }
export function delProject(id) {
  return request({
    url: `/project/del/${id}`,
    method: 'post',
  })
}
export function importExcelProject(data) {
  return request({
    url: '/project/importExcel',
    method: 'post',
    data
  })
}
export function getProjectOptions() {
  return request({
    url: "/project/getProjectList",
    method: "get"
  });
}